import initial


def show(x, count, str1):
    str1 += '    '
    count += 1
    if len(x) == 0:
        return
    else:
        for i in x:
            print(str1 + i.name + '--- 第%s代' % count)
            show(i.kids, count, str1)


def show_family():
    family = [initial.get_family()[0]]
    show(family, 0, '')